package genericdemo;

import java.util.ArrayList;
import java.util.List;

class Person {

}

class Student2 extends Person{

}

public class TestDemo3 {
    List<Person> list1 = new ArrayList<>();
    List<Student2> list2 = new ArrayList<>();



}
